package com.big.cmn.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.big.model.model.merchandise.MerchandiseDict;
import com.big.model.model.merchandise.MerchandiseSpecificationDict;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface MerchandiseSpecificationDictService extends IService<MerchandiseSpecificationDict> {

    //根据数据id查询子数据列表
    List<MerchandiseSpecificationDict> findChildData(Long id);

    //导出数据字典接口
    void exportDictData(HttpServletResponse response);

    //导入数据字典
    void importDictData(MultipartFile file);

    //根据dictcode和value查询
    String getDictName(String dictCode, String value);

    //根据dictCode获取下级节点
    List<MerchandiseSpecificationDict> findByDictCode(String dictCode);

    //省市区级联
    List<Object> cascading(String code);

}
